package com.issoft.studentresitor.mapper;

import com.github.pagehelper.Page;
import com.issoft.studentresitor.domain.pojo.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.issoft.studentresitor.domain.query.NoticeQuery;
import com.issoft.studentresitor.domain.vo.NoticeVo;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GJH
 * @since 2025-09-14
 */
public interface NoticeMapper extends BaseMapper<Notice> {

    Page<NoticeVo> queryNoticePage(NoticeQuery query);


    /**
     * 模糊可选查询公告
     * @param title
     * @param noticeType
     * @param publishTime
     * @return
     */
    List<NoticeVo> queryNotice(@Param("title") String title,@Param("noticeType")  String noticeType,@Param("publishTime") LocalDateTime publishTime);
//    NoticeVo queryNotice(@Param("title") String title,@Param("noticeType")  String noticeType,@Param("publishTime") LocalDateTime publishTime);
}
